In linux fileinfo extension installation, the following error prompt, what is the meaning (Baidu over, cannot find the answer) [root@AY130324201613791bcaFileinfo-1.0.4] # peclinstallfileinfoWARNING: & quot; pearFileinfo & quot; isdeprecatedinfavor...
When installing the FileInfo extension under Linux, what is the meaning of the following error message (hundred spent, can not find the answer)
[ROOT@AY130324201613791BCA fileinfo-1.0.4]# pecl Install FileinfoWARNING: "Pear/fileinfo" is deprecated
Linux Environment installation PHP fileinfo extension
Windows Environment installation extension is relatively simple, just copy the DLL to the extended directory, modify the corresponding extension in the php.ini.
The following is an
Background:Version php-5.3 No API to view the file's Mime_type, so you need to compile the extension fileinfo to extend the PHP API (finfo_* series functions). This issue will not exist in the official release package that php-5.3 will pull FileInfo
Data-id= "1190000005058875" data-license= "CC" >
Build and install FileInfo extensions under Centos
0.why complie FileInfo Extension
Today, a colleague to do the function, found that PHP was installed when the FileInfo extension is not
(FileStream, StreamWriter, StreamReader, File, FileInfo, Directory, DirectoryInfo, Path, Encoding)C # files and streams (FileStream, StreamWriter, StreamReader, file, FileInfo, Di, you can refer to the required friends. Files and Streams (FileStream,
Lnmp
LNMP One-click installation package is a Linux shell can be written for Centos/rhel/fedora/aliyun/amazon, Debian/ubuntu/raspbian/deepinserver/mint Linux LNMP (nginx/mysql/php), Lnmpa (Nginx/mysql/php/apache), LAMP (apache/mysql/php) Production
. Net built-in types include fileinfo and directoryinfo, which are used to operate files and folders. Different from file and directory, fileinfo and directoryinfo are mainly used to operate structures in files and folders, such as creation, copying,
When you install the PHP program, it prompts the FileInfo extension is required., the FileInfo extension is missing because Lnmpa does not open itself, so we need to manually open the FileInfo extension.The method is as follows:
First step: Locate
To obtain the mime type of the file below php5.3.0, the general method is to use the mime_content_type () method, but this method is outdated, so it is best to use fileinfo instead. I am using a windows environment. The following describes the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.